package com.android.xk.mask.client

import io.netty.buffer.ByteBuf
import io.netty.channel.ChannelHandlerContext
import io.netty.handler.codec.MessageToByteEncoder

class TransparentEncoder : MessageToByteEncoder<ByteArray>()
{
    override fun encode(ctx: ChannelHandlerContext?, msg: ByteArray?, out: ByteBuf?)
    {
        msg?.let {
            out?.writeBytes(it)
        }
    }

}